/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package model;

/**
 *
 * @author Stupi
 */
public class Subtraction {
    
    public int [][] subtractionMatrix (int [][] firstMatrix, int [][] secondMatrix) {
        
        int n = firstMatrix.length;
        int m = firstMatrix[0].length;
         int j;
         int i;
        int [][] sub = new int[n][m];
        
       for ( i = 0 ; i <n ; i++ )
            for (  j = 0 ; j < m ; j++ )
               sub[i][j] = firstMatrix[i][j] - secondMatrix[i][j];
    
        return sub;
    }
    
}
